export default {
    namespaced: true,
    state: () => ({
        age: 18,
    }),
    mutations: {
        setAge(state, payload) {
            state.age += payload;
        },
    },
    actions: {
        setAge({ state, commit, rootState }, { n }) {
            commit("setAge", n);
        },
    },
};
